package com.tac.service.scm;

import com.github.pagehelper.PageInfo;
import com.tac.common.result.Result;
import com.tac.pojo.scm.PurchasePlan;
import com.tac.pojo.scm.PurchasePlanDetails;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

public interface PurchasePlanService {
    //查看采购计划列表
    public Result<PageInfo<PurchasePlan>> getList(Integer pageNum, Integer pageSize, String documentNumber, String applicant, Date applicationDateStart, Date applicationDateEnd
            , String applicationStatus, String reviewer, Date reviewDateStart, Date reviewDateEnd, String reviewStatus);

    //修改采购计划
    public Result update(PurchasePlan purchasePlan);

    //删除采购计划
    @Transactional
    public Result remove(List<Integer> ids);

    //添加采购计划
    @Transactional
    public Result save(PurchasePlan purchasePlan);

    //采购计划审核
    @Transactional
    public Result updateByReview(PurchasePlan purchasePlan);

    //采购计划详情删除
    @Transactional
    public Result remove2(List<Integer> ids);
    //采购计划详情修改
    @Transactional
    public Result update2(PurchasePlanDetails purchasePlanDetails);
    //采购计划详情添加
    @Transactional
    public Result save2(PurchasePlanDetails purchasePlanDetails);
}
